package com.cn.controller;

import com.cn.api.ApiResult;
import com.cn.service.ShopParamsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/params")
public class ParamsController {

    @Autowired
    private ShopParamsService shopParamsService;


    /**
     * 查询规格参数
     * @return
     */
    @GetMapping("/queryParams")
    public ApiResult queryParams(){
        return shopParamsService.queryParams();
    }

}
